import {_decorator, Component} from 'cc';
import {BaseInfo} from "db://assets/scripts/data/model/BaseInfo";
import {Skill} from "db://assets/scripts/data/model/Skill";
import {MonsterController} from "db://assets/scripts/game/role/monster/MonsterController";

const {ccclass, property} = _decorator;

/**
 * 直线范围型的火焰
 */
@ccclass('JetFiresEffect')
export class JetFiresEffect extends Component {
    /**
     * 技能信息
     */
    public skill: Skill;
    /**
     * 基础信息
     */
    public baseInfo: BaseInfo;
    /**
     * 使用者
     */
    public parentScript: MonsterController;

    /**
     * 初始化
     *
     * @param skill 技能信息
     * @param baseInfo 基础信息
     * @param parentScript 使用者
     */
    public init(skill: Skill, baseInfo: BaseInfo, parentScript: MonsterController) {
        this.skill = skill;
        this.baseInfo = baseInfo;
        this.parentScript = parentScript;
    }
}